<?php
/**
 * Created by PhpStorm.
 * User: dongkai
 * Date: 2018/3/18
 * Time: 下午8:37
 */
namespace App\Model\Protobuf;

use App\Model\Model;
use App\Model\Protobuf\ProtoCommon;
use AutoMsg\LoadCompanyInfo;

class  CompanyInfo extends ProtoCommon
{
    function index($obj){
        $pt = new LoadCompanyInfo();
        $pt->mergeFrom($obj);
        $SocialStatus = $pt->getSocialStatus();
        $Name = $pt->getName();
        $Level = $pt->getLevel();
        $Id = $pt->getId();
        $Basicpassenger = $pt->getBasicpassenger();
        $CompanyAddition = $pt->getCompanyAddition();
        $CostGold = $pt->getCostGold();
        $CreateTime = $pt->getCreateTime();
        $CurExp = $pt->getCurExp();
        $CurFinanceLv = $pt->getCurFinanceLv();
        $CurInvestmentLv = $pt->getCurInvestmentLv();
        $DepartLvLimit = $pt->getDepartLvLimit();
        $NDExp = $pt->getNDExp();
        $TalkGroupId = $pt->getTalkGroupId()->getIterator();
        $TalkGroupId  = $this->repeated($TalkGroupId);
        $YesterdayGetMoney = $pt->getYesterdayGetMoney();
        $CurPersonnelLv = $pt->getCurPersonnelLv();
        $CurMarketLv = $pt->getCurMarketLv();
        $arr['SocialStatus'] = $SocialStatus;
        $arr['Name'] = $Name;
        $arr['Level'] = $Level;
        $arr['Id'] = $Id;
        $arr['Basicpassenger'] = $Basicpassenger;
        $arr['CompanyAddition'] = $CompanyAddition;
        $arr['CostGold'] = $CostGold;
        $arr['CreateTime'] = $CreateTime;
        $arr['CurExp'] = $CurExp;
        $arr['CurFinanceLv'] = $CurFinanceLv;
        $arr['CurInvestmentLv'] = $CurInvestmentLv;
        $arr['DepartLvLimit'] = $DepartLvLimit;
        $arr['NDExp'] = $NDExp;
        $arr['TalkGroupId'] = $TalkGroupId;
        $arr['YesterdayGetMoney'] = $YesterdayGetMoney;
        $arr['CurPersonnelLv'] = $CurPersonnelLv;
        $arr['CurMarketLv'] = $CurMarketLv;
        return $arr;
    }
}